home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Periodicals / develop / develop 8 code / TValidText / UDateTimeText.r < prev    next >
Encoding:
Text File  |  1991-10-09  |  2.6 KB  |  102 lines  |  [TEXT/MPS ]

  1. /**********************************************************************************
  2. UDateTimeText.r
  3.     This files contains the string list resource definitions required by the
  4.     TDateEditText and TTimeEditText classes.
  5. **********************************************************************************/
  6.  
  7. /* • Auto-Include the requirements for this source */
  8. #ifndef __TYPES.R__
  9. #include "Types.r"
  10. #endif
  11.  
  12. #define        kInvalidDateTimeAlert    701
  13.  
  14. #define        kInvalidDateReasons        701
  15. #define        kInvalidTimeReasons        702
  16.  
  17. resource 'STR#' (kInvalidDateReasons,
  18. #if qNames
  19.     "kInvalidDateReasons",
  20. #endif
  21.     purgeable) {
  22.     {    /* [1] */    "Invalid date";        // default time error string
  23.     
  24.         /* [2] */    "The string contains leftover characters";
  25.         /* [3] */    "The field separator is inappropriate";
  26.         /* [4] */    "The order of the fields is inappropriate";
  27.         /* [5] */    "The string contains extraneous characters";
  28.         /* [6] */    "The string contains too many separators";
  29.         /* [7] */    "The field separator is inconsistent";
  30.         /* [8] */    "A token error occurred while parsing the string";
  31.         /* [9] */    "The date utilities could not be read in";
  32.         /* [10] */    "No date was found in the string";
  33.         /* [11] */    "The date found was invalid"
  34.     }
  35. };  /* kInvalidDateReasons */
  36.  
  37. resource 'STR#' (kInvalidTimeReasons,
  38. #if qNames
  39.     "kInvalidTimeReasons",
  40. #endif
  41.     purgeable) {
  42.     {    /* [1] */    "Invalid time";        // default time error string
  43.     
  44.         /* [2] */    "The string contains leftover characters";
  45.         /* [3] */    "The field separator is inappropriate";
  46.         /* [4] */    "The order of the fields is inappropriate";
  47.         /* [5] */    "The string contains extraneous characters";
  48.         /* [6] */    "The string contains too many separators";
  49.         /* [7] */    "The field separator is inconsistent";
  50.         /* [8] */    "A token error occurred while parsing the string";
  51.         /* [9] */    "The time utilities could not be read in";
  52.         /* [10] */    "No time was found in the string";
  53.         /* [11] */    "The time found was invalid"
  54.     }
  55. };  /* kInvalidTimeReasons */
  56.  
  57.  
  58. resource 'DITL' (kInvalidDateTimeAlert,
  59. #if qNames
  60.     "kInvalidDateTimeAlert",
  61. #endif
  62.     purgeable) {
  63.     {    /* array DITLarray: 3 elements */
  64.         /* [1] */
  65.         {90, 20, 110, 60},
  66.         Button {
  67.             enabled,
  68.             "OK"
  69.         };
  70.         /* [2] */
  71.         {10, 80, 110, 270},
  72.         StaticText {
  73.             disabled,
  74.             "^0; previous value substituted.\n\nEnter using this format:\n^1"
  75.         };
  76.         /* [3] */
  77.         {10, 20, 42, 52},
  78.         Icon {
  79.             disabled,
  80.             0                // "Stop!" icon
  81.         }
  82.     }
  83. };
  84.  
  85. resource 'ALRT' (kInvalidDateTimeAlert,
  86. #if qNames
  87.     "kInvalidDateTimeAlert",
  88. #endif
  89.     purgeable) {
  90.     {90, 100, 210, 412},
  91.     kInvalidDateTimeAlert,
  92.     {    /* array: 4 elements */
  93.         /* [1] */
  94.         OK, visible, silent;
  95.         /* [2] */
  96.         OK, visible, silent;
  97.         /* [3] */
  98.         OK, visible, silent;
  99.         /* [4] */
  100.         OK, visible, silent
  101.     }
  102. };